package br.com.testes;

import java.awt.Graphics2D;
import java.awt.Image;

import javax.swing.ImageIcon;

public class GLevel {
	private Image fundo;
	
	public GLevel(String fileName)	{
		readLevel(fileName);
	}
	
	private void readLevel(String fileName)	{
		ImageIcon ref = new ImageIcon("res\\Headquarters.gif");
		fundo = ref.getImage();
	}
	
	public void draw(Graphics2D g2d){
		Graphics2D graficos = (Graphics2D) g2d;
		graficos.drawImage(fundo,0,0,null);
		g2d.dispose();
	}
}
